<!DOCTYPE html>
{% extends 'form_base.html' %}
{% import "bootstrap/wtf.html" as wtf %}
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    {% block title %}应急系统-搜索{% endblock %}

</head>
<body>
{% block page_content %}
<h3>搜索</h3>
<form method="post">
        {{ wtf.quick_form(form) }}
    </form>
<hr>
{% if datas %}
{#    <button onclick="javascript:location.href='/export';this.setAttribute('disabled', true)" id="export">导出EXCEL#}
{#    </button><span style="color: #ff0000" class="tip">&nbsp;&nbsp;共{{ datas|length }}条数据，仅可下载一次，否则重新搜索</span>#}
    <table border=1>
        <tr>
            <td bgcolor=silver class='medium'>文件路径</td>
            <td bgcolor=silver class='medium'>网关</td>
            <td bgcolor=silver class='medium'>GPS</td>
        </tr>
        {% for data in datas %}
            <tr>
                <td class='normal' valign='top'>{{ data['path'] }}</td>
                <td class='normal' valign='top'>{{ data['gw'] }}</td>
                <td class='normal' valign='top'>{{ data['gps'] }}</td>
            </tr>
        {% endfor %}
    </table>
{% else %}
<p>我已经尽力了</p>
{% endif %}
{% endblock %}
</body>
</html>
